MPTaskIsPreemptive

Determines whether a task is preemptively scheduled.

Boolean MPTaskIsPreemptive (MPTaskID taskID);
taskID
A value of type MPTaskID that specifies the task you want to check. Pass kInvalidID if you want to specify the current task.

function result
A value of type Boolean . If true, the task is preemptively scheduled. If false, the task is cooperatively scheduled.
DISCUSSION
If you have code that may be called from either cooperative or preemptive tasks, that code can call MPTaskIsPreemptive if its actions should differ depending on its execution environment.

VERSION NOTES
Introduced with Multiprocessing Services 2.0.


© 1999 Apple Computer, Inc. – (Last Updated 17 Nov 99)